/*
 * Line.java
 *
 * Created on August 23, 2008, 1:37 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.lct.eq2.data;

import java.io.Serializable;

/**
 *
 * @author Kris
 */
public class Line implements Serializable {
    static final long serialVersionUID = -4905035724724531943L;
    
    public static final short CONNECT = 1;
    public static final short DISCONNECT = 2;
    public static final short PARTY_JOIN = 3;
    public static final short PARTY_LEAVE = 4;
    public static final short DATA = 5;
    public static final short ENCOUNTER_END = 6;
    public static final short PARTY_CREATE = 7;
    public static final short RANK_INCREASE = 8;
    public static final short RENOWN_RANK_INCREASE = 9;
    
    private String line;
    private String server;
    private String character;
    private String groupID;
    private short type;
    private long localTime;
    private double timeDelta;
    
    /** Creates a new instance of Line */
    public Line(String line, short type) {
        this.localTime = System.currentTimeMillis();
        this.type = type;
        this.line = line;
    }
    
    public long getLocalTime() {
        return localTime;
    }

    public void setLocalTime(long localTime) {
        this.localTime = localTime;
    }

    public double getTimeDelta() {
        return timeDelta;
    }

    public void setTimeDelta(double timeDelta) {
        this.timeDelta = timeDelta;
    }

    public String getGroupID() {
        return groupID;
    }

    public void setGroupID(String groupID) {
        this.groupID = groupID;
    }
    
    public short getType() {
        return this.type;
    }
    
    public String getCharacter() {
        return character;
    }

    public void setCharacter(String character) {
        this.character = character;
    }

    public String getServer() {
        return server;
    }

    public void setServer(String server) {
        this.server = server;
    }
    
    public String getLine() {
        return this.line;
    }
    
    public void setLine(String line) {
        this.line = line;
    }
}
